package mutsumimod.powers;

import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.core.AbstractCreature;
import mutsumimod.MutsumiMod;

public class MutsumiRushPower extends BasePower {
    public static final String POWER_ID = MutsumiMod.makeID(MutsumiRushPower.class.getSimpleName());

    public MutsumiRushPower(AbstractCreature owner, int amount) {
        super(POWER_ID, PowerType.BUFF, false, owner, amount);
    }

    @Override
    public void onTriggerStand(int standAmount,int targetAmount) {
        if(standAmount==targetAmount){
            flash();
            addToTop(new DrawCardAction(amount));
        }
    }

    @Override
    public void updateDescription() {
        this.description = DESCRIPTIONS[0] + this.amount + DESCRIPTIONS[1];
    }

}
